package com.unknowpupil.oauth2.mapper;

import org.apache.ibatis.annotations.Mapper;

import com.unknowpupil.oauth2.domain.TbPermission;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 权限表 Mapper 接口
 * </p>
 *
 * @author AutoGenerator
 */
@Mapper
public interface TbPermissionMapper extends BaseMapper<TbPermission> {
    /**
     * 根据用户id查询权限
     *
     * @param id
     * @return
     */
    List<TbPermission> selectByUserId(@Param("id") Long id);
}
